home *** CD-ROM | disk | FTP | other *** search
- Path: solon.com!not-for-mail
- From: seebs@solutions.solon.com (Peter Seebach)
- Newsgroups: comp.lang.c
- Subject: Re: Tradition or what?
- Date: 8 Mar 1996 20:05:54 -0600
- Organization: Usenet Fact Police (Undercover)
- Message-ID: <4hqp22$3sb@solutions.solon.com>
- References: <4g0elg$mdr@redstone.interpath.net> <1996Mar8.153250.115645@kuhub.cc.ukans.edu> <4hqfug$19l@news.interpath.net> <4hqkso$gno@news1.mnsinc.com>
- NNTP-Posting-Host: solutions.solon.com
-
- In article <4hqkso$gno@news1.mnsinc.com>,
- Szu-Wen Huang <huang@mnsinc.com> wrote:
- >Let me join in. I use magic numbers for states in parsing tables,
- >and will shoot anybody who suggests I should #define state numbers.
- >I hope we buried the issue, now that I've given one good place to
- >use magic numbers instead of #define's.
-
- Don't shoot me, but let's look at specific examples.
-
- While lex and similar tools do this, I would never do it; I would name
- all states, although not with #defines; I'm an enum man, myself.
-
- -s
- --
- Peter Seebach - seebs@solon.com - Copyright 1996 Peter Seebach.
- C/Unix wizard -- C/Unix questions? Send mail for help. No, really!
- FUCK the communications decency act. Goddamned government. [literally.]
- The *other* C FAQ - http://www.solon.com/~seebs/c/c-iaq.html
-